home *** CD-ROM | disk | FTP | other *** search
- Path: prairienet.org!wemccaug
- From: wemccaug@prairienet.org (Wendy E. McCaughrin)
- Newsgroups: comp.lang.c++
- Subject: overloading ->
- Date: 16 Mar 1996 01:49:54 GMT
- Organization: University of Illinois at Urbana
- Message-ID: <4id6o2$t5n@vixen.cso.uiuc.edu>
- Reply-To: wemccaug@prairienet.org (Wendy E. McCaughrin)
- NNTP-Posting-Host: firefly.prairienet.org
-
-
-
- I realize that in addition to returning an object pointer
- as value, a member operator -> can also return an object,
- but I am wondering if there is a way to overload it so it
- can return two different pointer types directly. My problem
- is that it has to be a member operator taking no arguments,
- so the different return-values would be the only distinction
- and, of course, that is not enough to make them regarded as
- different by the compiler. Any suggestions?
-
- Thanks,
- Wendy
-
-